package Exercise;

import java.util.Scanner;

/**
 * Description：
 * Author: zhangc
 * Date：2017/8/16 2:06
 */
public class CycleBand {


    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int len = scanner.nextInt();
        int times = scanner.nextInt();
        int[] arr = new int[ len ];
        for (int i = 0; i < len; i++) {
            arr[ i ] = scanner.nextInt();
        }
        int j, temp;
        for (int i = 0; i < times; i++) {
            temp = arr[ 0 ];
            for (j = 0; j < len - 1; j++) {
                arr[ j ] += arr[ j + 1 ];
                if (arr[ j ] > 100)
                    arr[ j ] %= 100;
            }
            arr[ len - 1 ] += temp;
            if (arr[ len - 1 ] > 100)
                arr[ len - 1 ] %= 100;
        }
        for (int i = 0; i < len - 1; i++) {
            System.out.print(arr[ i ] + " ");
        }
        System.out.print(arr[ len - 1 ]);
    }
}
